﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewTask.aspx.cs" Inherits="Microsoft.InformationSecurity.RiskManagement.ISRMWeb.Tasks.viewtask"
    MasterPageFile="~/CISFPortal_RightMenu.Master" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="DefaultPageContent" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">    
    <div class="progressPopup">
        <asp:UpdateProgress ID="uprProgress" runat="server" DisplayAfter="200">
            <ProgressTemplate>
                <table class="progressBar" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="center" style="width: 30%">
                            <asp:Image ID="imgUpdateProgress" ImageUrl="~/Images/LineSpinner-blue.gif" runat="server" />&nbsp;
                        </td>
                        <td>
                            <asp:Label ID="lblWaitMessage" Text="Please wait while processing data..." CssClass="messageWait"
                                Font-Bold="true" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </div>
    <table border="0" cellpadding="1" cellspacing="2" width="100%">
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <td align="left" valign="middle" width="40">
                            <img src="../Images/Task-32.png" alt="Task Details" />
                        </td>
                        <td valign="middle">
                            <asp:Label runat="server" ID="lblPageHeader" Text="" CssClass="labelPageheader"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <hr />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pnlUpdateTask" runat="server" GroupingText="Task Details" Width="100%" BackColor="White">
                            <table border="0" cellpadding="3" cellspacing="5" width="100%">
                                <%if (this.Context.User.IsInRole(Microsoft.InformationSecurity.RiskManagement.ISRMWeb.Common.Utility.GetConfigurationValue("TrustedTaskUser")))
                                  {%>
                                <tr>
                                    <td width="10">
                                    </td>
                                    <td>
                                        <asp:Label ID="lblRiskLabel" runat="server" Text="Risk:" CssClass="headerlabel"></asp:Label>
                                    </td>
                                    <td colspan="4">
                                        <asp:HyperLink ID="hlRisk" runat="server"></asp:HyperLink>
                                    </td>
                                </tr>
                                <%} %>
                                <tr>
                                    <td width="10" align="right">
                                        <font color="red">*</font>
                                    </td>
                                    <td width="10%">
                                        <asp:Label ID="lblTitleLabel" runat="server" Text="Title:" CssClass="headerlabel"></asp:Label>
                                    </td>
                                    <td width="36%">
                                        <asp:TextBox ID="txtTitle" runat="server" Width="93%" Visible="false" MaxLength="255"></asp:TextBox>
                                        <asp:Label ID="lblTitle" runat="server" Text="Label" Width="95%" Visible="false"></asp:Label>
                                        <cc1:FilteredTextBoxExtender ID="fteTitle" runat="server" FilterMode="ValidChars"
                                            TargetControlID="txtTitle" ValidChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-:()_ ">
                                        </cc1:FilteredTextBoxExtender>
                                        <asp:RequiredFieldValidator ID="titleRequired" ValidationGroup="createTask" ControlToValidate="txtTitle"
                                            runat="server" ErrorMessage="Title is required." Enabled="false" Display="None"></asp:RequiredFieldValidator>
                                        <cc1:TextBoxWatermarkExtender ID="waterMarkTitle" runat="server" TargetControlID="txtTitle"
                                            WatermarkText="Enter title here..." WatermarkCssClass="watermark" />
                                    </td>
                                    <td width="10" align="right">
                                        <font color="red">*</font>
                                    </td>
                                    <td width="15%">
                                        <asp:Label ID="lblCategoryLabel" runat="server" Text="Category:" CssClass="headerlabel"></asp:Label>
                                    </td>
                                    <td width="36%">
                                        <asp:DropDownList ID="ddlCategory" runat="server" Width="95%" Visible="false">
                                        </asp:DropDownList>
                                        <asp:Label ID="lblCategory" runat="server" Text="Label" Width="95%" Visible="false"></asp:Label>
                                        <asp:RequiredFieldValidator ID="categoryRequired" ValidationGroup="createTask" ControlToValidate="ddlCategory"
                                            runat="server" ErrorMessage="Category is required." Enabled="false" Display="None"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="10">
                                    </td>
                                    <td>
                                        <asp:Label ID="lblStatusLabel" runat="server" Text="Status:" CssClass="headerlabel"> </asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlStatus" runat="server" Width="95%" Visible="false">
                                        </asp:DropDownList>
                                        <asp:Label ID="lblStatus" runat="server" Text="Label" Width="95%" Visible="false"></asp:Label>
                                    </td>
                                    <td width="10" align="right">
                                        <font color="red">*</font>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblGroupLabel" runat="server" Text="Group:" CssClass="headerlabel"> </asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlGroup" runat="server" Width="95%" Visible="false">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="groupRequired" ValidationGroup="createTask" ControlToValidate="ddlGroup"
                                            runat="server" ErrorMessage="Group is required." Enabled="false" Display="None"></asp:RequiredFieldValidator>
                                        <asp:Label ID="lblGroup" runat="server" Text="Label" Width="95%" Visible="false"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="10">
                                    </td>
                                    <td>
                                        <asp:Label ID="lblOwnerLabel" runat="server" Text="Owner:" CssClass="headerlabel"> </asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlOwner" runat="server" Width="95%" Visible="false">
                                        </asp:DropDownList>
                                        <asp:Label ID="lblOwner" runat="server" Text="Label" Width="95%" Visible="false"></asp:Label>
                                        <cc1:ListSearchExtender ID="lseOwner" PromptCssClass="autocomplete_list" runat="server"
                                            TargetControlID="ddlOwner" IsSorted="true" PromptPosition="Top" PromptText="Type to search"
                                            QueryPattern="Contains">
                                        </cc1:ListSearchExtender>
                                    </td>
                                    <td width="10" align="right">
                                        <font color="red">*</font>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblDueDateLabel" runat="server" Text="Due Date:" CssClass="headerlabel"> </asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDueDate" runat="server" Width="87%" Visible="false"></asp:TextBox>
                                        <img id="imgDueDateCalendar" runat="server" visible="false" src="../images/calendar.png"
                                            align="middle" style="cursor: pointer;" />
                                        <cc1:CalendarExtender ID="dueDateCalendar" runat="server" TargetControlID="txtDueDate"
                                            Animated="true" PopupButtonID="imgDueDateCalendar" PopupPosition="BottomRight">
                                        </cc1:CalendarExtender>
                                        <asp:Label ID="lblDueDate" runat="server" Text="Label" Width="300" Visible="false"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="10">
                                    </td>
                                    <td>
                                        <asp:Label ID="lblHoursSpentLabel" runat="server" Text="Hours Spent:" CssClass="headerlabel"> </asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtHoursSpent" runat="server" Visible="false" Width="93%"></asp:TextBox>
                                        <cc1:NumericUpDownExtender ID="nudHoursSpent" runat="server" Width="332" TextAlign="left"
                                            TargetControlID="txtHoursSpent" Step="4" Enabled="true" Minimum="0" Maximum="65536">
                                        </cc1:NumericUpDownExtender>
                                        <asp:Label ID="lblHoursSpent" runat="server" Text="Label" Width="95%" Visible="false"></asp:Label>
                                    </td>
                                    <td width="10">
                                    </td>
                                    <td>
                                        <asp:Label ID="lblNotificationLabel" runat="server" Text="Notification Schedule:"
                                            CssClass="headerlabel"> </asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNotification" runat="server" Width="95%" Visible="false">
                                        </asp:DropDownList>
                                        <asp:Label ID="lblNotification" runat="server" Text="Label" Width="95%" Visible="false"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="10">
                                    </td>
                                    <td valign="top">
                                        <asp:Label ID="lblDescriptionLabel" runat="server" Text="Description:" CssClass="headerlabel"></asp:Label>
                                    </td>
                                    <td colspan="4">
                                        <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="97%"
                                           Visible="false" Rows = "12"></asp:TextBox>
                                        <asp:Label ID="lblDescription" runat="server" Text="Label" Visible="false" Width="97%"
                                            Height="100"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                <td>
                                    &nbsp;
                                </td>
                                </tr>
                                <tr>
                                    <td colspan="6" align="right" style="padding-right: 18px;">
                                        <asp:Button ID="btnSave" runat="server" Text="Save Task" Visible="false" OnClick="btnSave_Click"
                                            ValidationGroup="createTask" />
                                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" Visible="false" OnClick="btnCancel_Click" />
                                    </td>
                                </tr>
                            </table>
                            <asp:ValidationSummary ID="validationSummary" runat="server" ValidationGroup="createTask"
                                DisplayMode="BulletList" ShowMessageBox="true" ShowSummary="false" HeaderText="Please correct the following:"
                                Enabled="false" />
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
</asp:Content>
